Pod::Spec.new do |s|
  s.name         = "AppleCoreAudioUtilityClasses@thehtb"
  s.version      = "2013.1.2"
  s.summary      = "A git mirror of Apple's Core Audio Utility Classes for better versioning."
  s.description  = <<-DESC
The "CoreAudio" folder contains the Public Utility sources (PublicUtility folder) as well as base classes required for codec and audio unit development. These utility classes are used by various Apple Core Audio sample project and extend or wrap Core Audio API's.
    DESC
  s.homepage     = "https://github.com/thehtb/AppleCoreAudioUtilityClasses"
  s.license      = 'Apple Sample Code License'
  s.author       = '(c) 2013 Apple Inc. All Rights Reserved.'
  s.source       = { :git => "https://github.com/thehtb/AppleCoreAudioUtilityClasses.git", :tag => "2013.1.2" }
  s.ios.deployment_target = '5.0'
  s.osx.deployment_target = '10.7'

  s.subspec 'PublicUtility' do |p|

    puBase = 'CoreAudio/PublicUtility/'

    p.subspec 'CAProcess' do |caProcess|
      caProcess.source_files = puBase + 'CAProcess.{cpp,h}'
    end

    p.subspec 'CAAutoDisposer' do |caAutoDisposer|
      caAutoDisposer.source_files = puBase + 'CAAutoDisposer.h'
    end

    p.subspec 'CABitOperations' do |caBitOperations|
      caBitOperations.source_files = puBase + 'CABitOperations.h'
      caBitOperations.framework = 'CoreAudio'
    end

    p.subspec 'CASpectralProcessor' do |caSpectralProcessor|
      caSpectralProcessor.source_files = puBase + 'CASpectralProcessor.{cpp,h}'
      caSpectralProcessor.framework = 'Accellerate'
      caSpectralProcessor.dependency 'AppleCoreAudioUtilityClasses@thehtb/PublicUtility/CABitOperations'
    end

  end
  s.requires_arc = false
end
